/*
 * @Description: 
 * @version: 
 * @Author: cy
 * @Date: 2021-03-09 17:12:11
 * @LastEditors: cy
 * @LastEditTime: 2021-06-10 09:48:40
 */
const path = require('path');
module.exports = {
    lintOnSave: false,
    runtimeCompiler: true,
    pluginOptions: {
        'style-resources-loader': {
            preProcessor: 'scss',
            patterns: [path.resolve(__dirname, './src/common/styl/style.scss')]
        }
    },
    configureWebpack: { 
        devtool: process.env.NODE_ENV !== 'production'?undefined:'source-map'
    },
    configureWebpack: $config => {
        return { 
            module: { 
                // require
                unknownContextRegExp: /$^/,
                unknownContextCritical: false,

                // require(expr)
                exprContextRegExp: /$^/,
                exprContextCritical: false,

                // require("prefix" + expr + "surfix")
                wrappedContextRegExp: /$^/,
                wrappedContextCritical: false
            }
        }
    }
}
